package com.changgou.goods.service;

import com.changgou.goods.pojo.Brand;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface BrandService {
    /***
     * 查询所有品牌
     * @return
     */
    List<Brand> findAll();
    Brand findById(Integer id);
    void add(Brand brand);
    void update(Brand brand);
    void delete(Integer id);
    List<Brand> findList(Brand brand);
    PageInfo<Brand> findPage(Integer page,Integer size);
    PageInfo<Brand> findPage(Brand brand, int page, int size);
    public List<Map<String,String>> findListByCategoryName(String name);
    List<Brand> findByCategory(Integer categoryid);
}
